-
Notifications
You must be signed in to change notification settings - Fork 328
automate building Release Candidate in github action #1391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
automate building Release Candidate in github action #1391
Conversation
b26c2a7
to
b22117b
Compare
@Fokko could you take a look at this PR when you get a chance? |
push: | ||
tags: | ||
# Trigger this workflow when tag follows the versioning format: pyiceberg-<major>.<minor>.<patch>rc<release_candidate> | ||
# Example valid tags: pyiceberg-0.8.0rc2, pyiceberg-1.0.0rc1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 In line with the current tags: https://github.com/apache/iceberg-python/tags
.github/workflows/python-release.yml
Outdated
|
||
- name: Install Poetry | ||
run: | | ||
pip install poetry |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we reuse make install-poetry
here? In the Makefile we pin the version of Poetry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch! changed
we use make install-poetry
in other places for github action
https://grep.app/search?f.repo=apache%2Ficeberg-python&f.repo.pattern=iceberg-python&q=make+install-poetry
e60ab87
to
e0e68a3
Compare
.github/workflows/python-release.yml
Outdated
fi | ||
|
||
# SVN | ||
svn_build_artifacts: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency, should we use dashes here?
svn_build_artifacts: | |
svn-build-artifacts: |
Same for some other jobs below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The flow makes sense to me. Let's give this a shot for the 0.9.0 release 👍
|
||
 | ||
If `gh` is available, watch the GitHub Action progress using: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it!
had to add an unrelated change in |
Thanks for the review @Fokko :) |
Any time, sorry for taking so long :3 |
Related to #1306 and #872
Devlist discussion: https://lists.apache.org/thread/oowhcfwv3fcjzdzm76tbn99k5q84mr75
This PR changes
.github/workflows/python-release.yml
to build the artifacts for both svn and pypi and update the "how to release doc" to match the new process. Other improvements related to the release process are also included:version
andrc
version
andrc
from either tag or manual inputversion
against the current library versionactions/checkout@v4
fetch-depth
from0
to1
to fetch only a single commit (fetch-depth 0 fetches all history for all branches and tags)svn-release-candidate-${VERSION}rc${RC}
pypi-release-candidate-${VERSION}rc${RC}
, set library version to one with RC (e.g. 0.8.1rc1, same behavior as before)Final release process should look something like this
main
for major/minor,branch
for patch release)0.8.1rc1
)0.8.1rc2
)Testing
version=0.8.0
,rc=10
, https://github.com/kevinjqliu/iceberg-python/actions/runs/12166623947) ✅version=0.8.a
,rc=10
, https://github.com/kevinjqliu/iceberg-python/actions/runs/12167579948) ✅version=0.8.0
,rc=a
, https://github.com/kevinjqliu/iceberg-python/actions/runs/12167639523/job/33936658282) ✅version=1.0.0
,rc=100
, https://github.com/kevinjqliu/iceberg-python/actions/runs/12167654762) ✅tag=pyiceberg-0.8.0rc10
, https://github.com/kevinjqliu/iceberg-python/actions/runs/12167691265) ✅tag=pyiceberg-0.8.arc10
, not triggered ✅ )tag=pyiceberg-0.8.0rca
, not triggered ✅ )tag=pyiceberg-1.0.0rc100
, https://github.com/kevinjqliu/iceberg-python/actions/runs/12168199006 ✅)